﻿using System;
using System.Data.SqlClient;

namespace Lookstone.Data.SQLite
{
	/// <summary>
	/// Summary description for SQLiteByteKey.
	/// </summary>
	public abstract class SQLiteByteKey : SQLiteKeyBase<byte>
	{
		#region /***** Constructors *****/
		public SQLiteByteKey()
			: base() { }

		public SQLiteByteKey(SQLiteConnectionContext context, byte id)
			: base(context, id) { }

		public SQLiteByteKey(RowReader reader)
			: base(reader) { }
		#endregion /***** Constructors *****/

		#region //****** Methods ******//
		protected override void StoreSaveInfo(RowReader reader)
		{
			InternalID = reader.GetField<byte>(0);
		}
		#endregion //****** Methods ******//
	}
}